glarea: Fix precondition check
authorTimm Bäder <mail@baedert.org>
Sun, 4 Feb 2018 14:10:23 +0000 (15:10 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 4 Feb 2018 14:10:23 +0000 (15:10 +0100)
and the build.

gtk/gtkglarea.c

index 3a12f84081ea6970815f4a1790d08a2068ced783..1e14e1b07e700b242ef9cd004d5833da0cb9dfe1 100644 (file)
@@ -1372,7 +1372,7 @@ gtk_gl_area_make_current (GtkGLArea *area)
   GtkGLAreaPrivate *priv = gtk_gl_area_get_instance_private (area);
 
   g_return_if_fail (GTK_IS_GL_AREA (area));
-  g_return_if_fail (gtk_widget_get_realized (GTK_WIDGET (widget)));
+  g_return_if_fail (gtk_widget_get_realized (GTK_WIDGET (area)));
 
   if (priv->context != NULL)
     gdk_gl_context_make_current (priv->context);